package net.lab1024.sa.admin.module.business.quotation.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 报价明细 新建表单
 *
 * @Author zzx
 * @Date 2025-08-07 19:45:24
 * @Copyright zzx
 */

@Data
public class QuotationItemsAddForm {

    @Schema(description = "品名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "品名 不能为空")
    private String productName;

    @Schema(description = "规格")
    private String specifications;

    @Schema(description = "比重")
    private BigDecimal specificWeight;

    @Schema(description = "用量")
    private BigDecimal usagee;

    @Schema(description = "单价")
    private BigDecimal unitPrice;

    @Schema(description = "金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "金额 不能为空")
    private BigDecimal sumOfMoney;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "类型 不能为空")
    private Integer type;

}